<%@ page language="java" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>

<html:html lang="true">
  <head>
    <html:base />
    
    <title>login.jsp</title>

	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <html:errors/>
  ${msg }
  <html:form action="dept.do" method="post">
  
  		<table>
  			<tr>
  				<td>部门编号:</td>
  				<td><html:text property="dept.deptno"></html:text></td>
  			</tr>
  			<tr>
  				<td>部门名称</td>
  				<td><html:text property="dept.dname"></html:text></td>
  			</tr>
  		
  		</table>
  
  
  </html:form>
  
  
  	<!-- 单个输出 -->
<%-- 	<bean:write name="dept" property="dname"/> --%>
<!-- 	<br/> -->
<%-- 	<bean:write name="dept" property="deptno"/> --%>
 	<!-- 批量输出 --> 
<%-- 	<logic:present name="all" scope="request"> --%>
<%-- 		<logic:iterate id="vo" name="all"> --%>
<%-- 			<li>编号: ${vo.deptno }</li> --%>
<%-- 			<li>名称:${vo.dname}</li> --%>
<%-- 		</logic:iterate> --%>
<%-- 	</logic:present> --%>

  </body>
  
</html:html>
